import React from 'react'
import ReactDM from "react-dom"
//将普通的数组转为jsx语法
let arr = ['冰淇淋','单都是','是那么的付款'];
let newArr = [];
arr.forEach(item=>{
    let ele =  <h2>{item}</h2>
    newArr.push(ele)
})
ReactDM.render(<div>
    {newArr}
    <hr/>
    {arr.map(item=><h5>{item}</h5>)}
</div>,document.getElementById('root'))